{if $full_page}
{include file="pageheader.htm"}
{insert_scripts files="../js/utils.js,listtable.js"}
<!-- 品牌搜索 -->
{include file="brand_search.htm"}

<form method="post" action="" name="listForm">
    <div class="list-div" id="listDiv">
{/if}
        <table cellpadding="3" cellspacing="1">
            <tr>
                <th>id</th>
                <th>联系人</th>
                <th>手机</th>
                <th>联系电话</th>
                <th>公司名称</th>
                <th>采购需求</th>
                <th>购买时间</th>
                <th>操作</th>
            </tr>

            {foreach from=$company_list item=company}
            <tr>
                <td align="center">{$company.id}</td>
                <td align="center">{$company.username}</td>
                <td align="center">{$company.phone}</td>
                <td align="center">{$company.tel}</td>
                <td align="center">{$company.company_name}</td>
                <td align="center">{$company.buying_demand}</td>
                <td align="center">{$company.post_time}</td>
                <td align="center">
                    <a href="company_order.php?act=edit&id={$company.id}" >编辑</a> |
                    <a href="javascript:;" onclick="listTable.remove({$company.id}, '{$lang.drop_confirm}')">移除</a>
                </td>
            </tr>
            {/foreach}
            
            <tr>
                <td align="right" nowrap="true" colspan="6">
                {include file="page.htm"}
                </td>
            </tr>
    
        </table>
        
    {if $full_page}
    </div>
</form>
<script type="text/javascript" language="javascript">
  <!--
  listTable.recordCount = {$record_count};
  listTable.pageCount = {$page_count};

  {foreach from=$filter item=item key=key}
  listTable.filter.{$key} = '{$item}';
  {/foreach}

  {literal}
  onload = function()
  {
      // 开始检查订单
      startCheckOrder();
  }
  {/literal}
  //-->
</script>
    {include file="pagefooter.htm"}
    {/if}
